//
//  hvMapCustomCalloutAnnotationView.h
//  hvMapCustomCalloutAnnotationView
//	可自寶彈出框視圖的地標標點類,使用時,往contentView中添加自定義的視圖
//  Created by moon on 14-5-7.
//  Copyright (c) 2014年 hv. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import "hvArrowContainerView.h"

@interface hvMapCustomCalloutAnnotationView : MKPinAnnotationView

typedef void(^AnnotationCalloutViewClickHandler)(hvMapCustomCalloutAnnotationView *annotationView);

@property(nonatomic,readonly) hvArrowContainerView *calloutView;	//含有箭頭的彈出框容器視圖
@property(nonatomic,readonly) UIView *contentView;					//彈出框的內容視圖,使用button實現
@property(nonatomic,readonly) MKMapView *mapView;					//外界的map視圖

@property(nonatomic,assign) BOOL showsTouchWhenHighlighted;	//按下contentView時,是否高光顯示,默認為NO
@property(nonatomic,assign) UIColor *highlightedColor;		//按下時的高光顏色,默認為灰色
@property(nonatomic,assign) UIColor *normalColor;			//沒按下時的內容背景顏色,默認為白色


//點擊彈出框區域時的觸發事件
@property(nonatomic,copy) AnnotationCalloutViewClickHandler calloutViewClickHandler;
- (void)setCalloutViewClickHandler:(AnnotationCalloutViewClickHandler)calloutViewClickHandler;
@end
